<?php
if(empty($dataProvider->data[0]->producer->page_title))
	$this->pageTitle=Yii::app()->name . ' - Каталог - Шины - '.CHtml::encode($dataProvider->data[0]->producer->title);
else
	$this->pageTitle = $dataProvider->data[0]->producer->page_title;
	
Yii::app()->clientScript->registerMetaTag($dataProvider->data[0]->producer->page_description, 'description');
Yii::app()->clientScript->registerMetaTag($dataProvider->data[0]->producer->page_keywords, 'keywords');
	
$this->breadcrumbs=array(
	'Шины'=>array('catalog/tyres'),
	$dataProvider->data[0]->producer->title,
);
?>

<div class='grid_6'>
	<p class='line'>
	<?php 
	$this->widget('zii.widgets.CBreadcrumbs', array(
		'links'=>$this->breadcrumbs,
		'separator'=>' <span>/</span> ',
		'htmlOptions'=>array('class'=>'left', 'id'=>'breadcrumbs'),
		'homeLink'=>false,
		'tagName'=>'span',
		'encodeLabel'=>false,
	));
	?>
	</p>

	<?php $this->widget('zii.widgets.CListView', array(
		'dataProvider'=>$dataProvider,
		'itemView'=>'tyres/_model',
		'ajaxUpdate' => false,
		'viewData'=>array('season'=>$season, 'stud'=>$stud),
		'template' => '<ul class="items goods-line">{items}</ul><div class="pager">{pager}</div>',
		'pager'=>array(
			'cssFile'=>false,
			'header'=>'<div class="clear"></div>',
			'prevPageLabel'=>'&larr; сюда',
			'nextPageLabel'=>'туда &rarr;',
		),
	)); ?>
</div>

<div class='grid_3'>
	<?php $this->widget('widgets.brands.WTyreBrands'); ?>
	<?php $this->widget('widgets.faq.WFaq'); ?>
</div>


<div class='grid_3 '>
	<?php $this->widget('widgets.offers.WOffers'); ?>
</div>

<div class='clear'></div>
<?php /*
<div class='grid_12 alpha'>
	<?php $this->widget('widgets.new.WNewTyres'); ?>
</div>
*/ ?>

<div class='clear'></div>
